chcp 65001
@echo off
for /l %%x in (1,2,10) do (
    echo 变量 x 的值是 %%x
)
